@import '~@wordpress/base-styles/mixins';
@import '~@wordpress/base-styles/variables';
@import '~@wordpress/base-styles/z-index';
@import '~@automattic/typography/styles/variables';

body.has-nux-launch-modal {
	overflow: hidden;
}

.nux-launch-modal {
	&.components-modal__frame {
		transform: none;
	}

	.components-modal__header {
		display: none;
	}

	.components-modal__content {
		position: fixed;
		top: 0;
		left: 0;
		display: block;
		background: var( --studio-white );
		width: 100%;
		height: 100%;
		padding: 0;
		overflow-y: scroll;
		overflow-x: auto;
	}
}

.nux-launch-modal-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: z-index( '.components-modal__header' );
	width: 100%;
	height: 0;
	overflow: visible;
}

.nux-launch-modal-header__wp-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
}

.nux-launch-modal-body {
	padding-top: $header-height;
	margin-right: $sidebar-width;
	position: relative;
}

.nux-launch-modal-aside {
	position: fixed;
	top: 0;
	right: 18px;
	width: $sidebar-width;
	max-width: $sidebar-width;
	max-width: $sidebar-width;
	min-height: 100vh;
	border-left: 1px solid var( --studio-gray-5 );
	padding-top: $header-height;
	background: var( --studio-white );
	z-index: z-index( '.components-modal__header' ) + 1;
}

.nux-launch-modal__close-button.components-button.is-link {
	position: absolute;
	top: 0;
	right: 0;
	z-index: z-index( '.components-modal__header' ) + 2;
	width: 60px;
	height: 60px;
	justify-content: center;
	color: var( --studio-gray-50 );

	&:hover {
		color: var( --studio-gray-40 );
	}
}

.nux-launch-modal-body__launching {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: $font-body;
}
